<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title><%= yield :title %></title>
	<%= stylesheet_link_tag 'style' %>
	<%= javascript_include_tag 'jquery' %>
	<%= javascript_include_tag 'stripe' %>
	<%= yield :external_scripts -%>

    <script type="text/javascript">
    $(document).ready(function() {
      stripe('table.list tbody');
      stripe('#comments');
    });
    
    <%= yield :scripts -%>
    </script>
    
  </head>
<body>

<div id="content">
<% unless impersonator.nil? -%>
<div id="impersonation"><%= :impersonating.localize_with_args(:impersonator => impersonator.render, :user => current_user.render) %> (<%= link_to :stop_impersonating.l, stop_impersonating_admin_users_url %>)</div>
<% end -%>
<div id="banner">
  <%= render :partial => "shared/user_options" %>
  <h1><%= link_to :app_title.l, '/' %></h1>
  <% if logged_in_as_manager? %>
  <ul id="admin_links">
    <li><%= link_to :user_admin.l, admin_users_url() %></li>
    <li><%= link_to :events.l, events_url() %></li>
    <li><%= link_to :cfws.l, admin_call_for_workers_url() %></li>
  </ul>
  <% end %>
</div>

<h2><%= yield :title %></h2>

<div id="navlinks">
<%= yield :navlinks %>
</div>

<%= yield :tabs %>

<%= render :partial => 'shared/notice' %>

<%= yield %>

<%= yield :help %>

<div id="footer">Copyright &copy; 2008 Festival Samaritans.</div>
</div>

<% if RAILS_ENV == 'development' && session[:debug_session] -%>
<%= debug session.data %>
<% end -%>

</body>
</html>
